<?php
    namespace mytool;
    class Time
    {
        static public function Today()
        {
            $start=mktime(0,0,0,date('m'),date('d'),date('Y'));
            $end=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;
            return [$start,$end];
        }

        static public function Yesterday()
        {
            $start=mktime(0,0,0,date('m'),date('d')-1,date('Y'));
            $end=mktime(0,0,0,date('m'),date('d'),date('Y'))-1;
            return [$start,$end];
        }
        static public function Tomorrow()
        {
            $start=mktime(0,0,0,date('m'),date('d')+1,date('Y'));
            $end=mktime(0,0,0,date('m'),date('d')+1+1,date('Y'))-1;
            return [$start,$end];
        }
        static public function Lastweek()
        {
            $start=mktime(0,0,0,date('m'),date('d')-date('w')+1-7,date('Y'));
            $end=mktime(23,59,59,date('m'),date('d')-date('w')+7-7,date('Y'));
            return [$start,$end];
        }

        static public function Thisweek()
        {
            $start = mktime(0,0,0,date('m'),date('d')-date('w')+1,date('Y'));
            $end = mktime(23,59,59,date('m'),date('d')-date('w')+7,date('Y'));
            return [$start,$end];
        }

        static public function Nextweek()
        {
            $start = mktime(0,0,0,date('m'),date('d')-date('w')+1+7,date('Y'));
            $end = mktime(23,59,59,date('m'),date('d')-date('w')+7+7,date('Y'));
            return [$start,$end];
        }

        static public function Thismonth()
        {
            $start = mktime(0,0,0,date('m'),1,date('Y'));
            $end = mktime(23,59,59,date('m'),date('t'),date('Y'));
            return [$start,$end];
        }
        
     


    }
